<template>
  <div class="dialog-lahei">
    <my-form
      :myform="form"
      :myrules="rules"
      :fname="fname"
      @value="updata"
      @close="close"
      success="已拉黑该客户,可在设置-黑名单中解禁"
    ></my-form>
  </div>
</template>

<script>
import MyForm from "@/components/MyInput/MyForm";
export default {
  props: ["fname"],
  components: {
    MyForm,
  },
  data() {
    return {
      form: {
        msg: "",
        f: {
          f1: {
            label: "拉黑原因",
            type: "textarea",
            prop: "msg",
            setting: {
              ph: "请输入拉黑原因",
              rows: 10,
            },
          },
        },
      },
      rules: {
        msg: [{ required: true, message: "请输入活动名称", trigger: "blur" }],
      },
    };
  },
  methods: {
    updata(obj) {
      console.log("obj");
      console.log(obj);
      this.form[obj.propname] = obj.valuename;
    },
    close () {
        this.$emit('close',false)
    }
  },
};
</script>

<style>
</style>